<!doctype html>
<html>
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <link rel="stylesheet" type="text/css" href="../../css/jquery.mobile-1.4.0.css" />
    <link rel="stylesheet" type="text/css" href="../../css/zpdydhl_mobile.css">
    <link rel="stylesheet" type="text/css" href="../../css/mobiscroll.custom-2.6.2.min.css">
    <script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../../js/jquery.mobile-1.4.0.min.js"></script>
    <script type="text/javascript" src="../../js/zpdydhl_mobile.js"></script>
    <script type="text/javascript" src="../../js/mobiscroll.custom-2.6.2.min.js"></script>
    <style type="text/css">
        /*加载loding*/
        .spinner {
          margin: 5px auto 0;
          width: 150px;
          text-align: center;
          position: fixed;
        }

        .spinner > div {
          width: 20px;
          height: 20px;
          background-color: #67CF22;

          border-radius: 100%;
          display: inline-block;
          -webkit-animation: bouncedelay 1.4s infinite ease-in-out;
          animation: bouncedelay 1.4s infinite ease-in-out;
          /* Prevent first frame from flickering when animation starts */
          -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
        }

        .spinner .bounce1 {
          -webkit-animation-delay: -0.32s;
          animation-delay: -0.32s;
        }

        .spinner .bounce2 {
          -webkit-animation-delay: -0.16s;
          animation-delay: -0.16s;
        }

        @-webkit-keyframes bouncedelay {
          0%, 80%, 100% { -webkit-transform: scale(0.0) }
          40% { -webkit-transform: scale(1.0) }
        }

        @keyframes bouncedelay {
          0%, 80%, 100% {
            transform: scale(0.0);
            -webkit-transform: scale(0.0);
          } 40% {
            transform: scale(1.0);
            -webkit-transform: scale(1.0);
          }
        }
        /*end*/
        .table-list {
            width: 95%;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div data-role="page" data-theme="c">
    <div class="ui-content" style="padding:0px;">
        <table class="table-list" cellpadding="0" cellspacing="0">
          <thead class="huanzhe_sancedan_table">
            <tr>
              <td style="width:22%">住院周次</td>
              <td style="width: 80%">住院日期</td>
            </tr>
          </thead>
          <tbody class="huanzhe_sancedan_content_table">
          <tr href="__URL__/showSancedan/zhuyuan_id/{$zhuyuan_id}/count/{$search_result.count}/week_begin/{$search_result.week_begin}/week_end/{$search_result.week_end}">
            <td style="width:22%"></td>
            <td style="width: 80%"></td>
          </tr>
        </table>
    </div>

    <!-- <div data-role="footer" data-position="fixed" class="footer_list"  data-tap-toggle="false" data-theme="b">
        <ul>
			<li><a href="./showPatientZhuyuanDetail.html" data-ajax="false"><img src="../../css/images/bl.png"></a></li>
			<li><a href="./showPatientZhenduan.html" data-ajax="false"><img src="../../css/images/jy.png"></a></li>
			<li><a  href="./showYizhuChangqi.html" data-ajax="false"><img src="../../css/images/yz.png"></a></li>
			<li><a href="./showTizhengList.html" data-ajax="false"><img src="../../css/images/tz_hover.png"></a></li>
			<li><a href="../JianyanJiancha/showJianchaList.html" data-ajax="false"><img src="../../css/images/jc.png"></a></li>
        </ul>
    </div> -->

</div>
<script type="text/javascript">
    $(function(){
        //设置改页面的值，用于判断当点击患者列表后，响应页面操作
        document_type_global = "tizhengList";

        //tizhengListSwitchuser();
		$(".hlink").die().live("click",function(){
			var hlink = $(this).attr("hlink");
			window.location.href = hlink;
		});
    });
	function refreshData(){
		tizhengListSwitchuser();
	}
    //体征信息
    function tizhengListSwitchuser(){
       var temp_search_list = null;
        $.ajax({
            type: "post",
            async: true,
            url:server_url+"Mobile/Tizheng/showTiwendanListJson/zhuyuan_id/"+zhuyuan_id+yiyuan_id,
			data:{},
            dataType: "jsonp",
            jsonp: "callbackShowTiwendanListJson",
            //jsonpCallback:"feedBackStateShowTiwendanListJson",
            error:function(mes)
            {
                alert("请求失败，请稍后重试");
            },
            beforeSend: loading,
            success: function(result) {
                if(result.ret == "success"){
                    temp_search_list = result.data.search_result;
                    str = '';
                    for (var i = 1; i < result.data.search_result.length; i++) {
                        str+='<tr first_day="'+result.data.search_result[i].first_day_current_week+'" class="tizheng_history_link" href="#" hlink="../tizheng/showTizheng.html?count='+result.data.search_result[i].count+'&id='+i+'&patient_zhuyuan_id='+zhuyuan_id+'&host_ip='+host_ip+'&tizheng_jiancha_date='+result.data.search_result[i].first_day_current_week+'"><td style="width:22%">'+result.data.search_result[i].zhouci+'</td><td style="width:80%">'+result.data.search_result[i].zhouciriqi+'</td>';
                        str+='</tr>';
                    };
                    $('.huanzhe_sancedan_content_table').html(str);
                    $(".tizheng_history_link").on("click",function(){
                        var hlink = $(this).attr("hlink");
                        var tizheng_jiancha_date = $(this).attr("first_day");
                        window.location.href = hlink+"&tizheng_jiancha_date="+tizheng_jiancha_date+"&page_before_tizhenglishi=tizhenglist";
                    });

                    /*加载loding消失*/
                    $('#m').remove();
                    $('#lo').remove();
                    /*end*/
                }
            }
        });
    }
</script>
</body>
</html>
